package com.cj.eduservice.client;

import com.cj.commonutils.UcenterMember;
import com.cj.eduservice.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cj
 * @date 2023/4/20 10:23
 * @description
 */
@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
    @GetMapping("/educenter/member/getUcenter/{memberId}")
    public UcenterMember getUcenterById(@PathVariable("memberId") String memberId);
}
